package com.hmkj.core.po.marketing;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.function.Consumer;


/**
 * 用户盈利排行榜实体信息<br>
 *
 * @author eproo
 * @date   2018-07-07 03:11:59
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "用户盈利排行榜")
@Table(name = "s_user_earnings_ranking")
public class UserEarningsRanking extends GenericPo<Integer> {

    public static final String TABLE_NAME = "s_user_earnings_ranking";

	
	/**用户名**/
	@ApiModelProperty(value = "用户名")
	private String username;
	/**用户人数**/
	@ApiModelProperty(value = "用户人数")
	private Integer userCount;
	/**盈利金额**/
	@ApiModelProperty(value = "盈利金额")
	private BigDecimal profit;
	/****/
	@ApiModelProperty(value = "")
	private String remark;

    public UserEarningsRanking(){}

    public UserEarningsRanking(Consumer<UserEarningsRanking> consumer){
    consumer.accept(this);
    }
}

